package com.ahy231.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author ahy231
 * @date 2021/8/1 21:35
 * @description
 */
@Data
@ApiModel("消息")
public class GetMessages implements Serializable {
    private static final long serialVersionUID = 8966390656589825298L;
    @ApiModelProperty("消息 id")
    private String messageId;
    @ApiModelProperty("消息内容")
    private String content;
    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp time;
    @ApiModelProperty("是否已读（1/未读、2/已读）")
    private Integer read;
    @ApiModelProperty("发送者用户名")
    private String sender;
    @ApiModelProperty("是否是接收消息")
    private Boolean receive;
}
